package com.patternsbox.behavioral.strategy;

import com.patternsbox.ActionTemplate;

public class StrategyAction extends ActionTemplate {

	public void doAction() {
	      Context context;
	      // Three contexts following different strategies
	      context = new Context(new ConcreteStrategyA());
	      context.ContextInterface();
	      context = new Context(new ConcreteStrategyB());
	      context.ContextInterface();
	      context = new Context(new ConcreteStrategyC());
	      context.ContextInterface();
	}
}
